{include file="../../../application/admin/view/public/head" /}
<div class="page-container p10">

    <div class="my-toolbar-box" >
        <div class="center mb10">
            <form class="layui-form " action="{:url()}"  method="post">
                <div class="layui-input-inline">
                    <input type="text" autocomplete="off" placeholder="请输入设备ID" class="layui-input" name="device_id" value="{$param['device_id']}">
                </div>
                {if empty($param['device_id'])}
                <div class="layui-input-inline">
                    <select class="layui-select" name="app_id">
                        <option value="">全部</option>
                        {foreach $applists as $appId =>$appName}
                        <option value="{$appId}"
                                {if $appId == $param.app_id}
                                selected
                                {/if}
                        >{$appName}</option>

                        {/foreach}
                    </select>
                </div>
                {/if}
                <button class="layui-btn mgl-20 j-search" >查询</button>
            </form>
        </div>
    </div>

     <form class="layui-form " method="post" id="pageListForm">
         <table class="layui-table" lay-size="sm">
            <thead>
            <tr>
                <th width="80">编号</th>
                <th width="80">应用名称</th>
                <th >设备ID</th>
                <th width="100">操作系统</th>
                <th width="240">直播名称</th>
                <th width="140">日志时间</th>
            </tr>
            </thead>

            {volist name="list" id="vo"}
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.app_name}<br/>[{$vo.app_id}]</td>
                <td>{$vo.device_id}<br/>{$vo.device_name}</td>
                <td>{$vo.system_type}</td>
                <td>{$vo.zhibo_qiudui} <br/>[{$vo.zhibo_name}] </td>
                <td>{$vo.time_added|mac_day=color}</td>
            </tr>
            {/volist}
            </tbody>
        </table>

        <div id="pages" class="center"></div>

    </form>
</div>

{include file="../../../application/admin/view/public/foot" /}


<script type="text/javascript">
    var curUrl="{:url('ulog/zhiboindex',$param)}";
    layui.use(['laypage', 'layer'], function() {
        var laypage = layui.laypage
                , layer = layui.layer;

        laypage.render({
            elem: 'pages'
            ,count: {$total}
            ,limit: {$limit}
            ,curr: {$page}
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
            ,jump: function(obj,first){
                if(!first){
                    location.href = curUrl.replace('%7Bpage%7D',obj.curr).replace('%7Blimit%7D',obj.limit);
                }
            }
        });
    });
</script>
</body>
</html>